home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / COMM / WTERM110.ARJ / READER.BAT < prev    next >
DOS Batch File  |  1992-05-05  |  2KB  |  59 lines

  1. @echo off
  2.  
  3. :: If you have problems with running out of environment space,
  4. :: put a SET DUMMY=123456789012345678901234567890 in your
  5. :: AUTOEXEC.BAT and then recover 30 bytes with the next set
  6. :: command.  Since you are doing this in a shell, you aren't
  7. :: really deleting it.  It will be there the next time you run it
  8. :: as well.
  9.  
  10. SET DUMMY=
  11.  
  12. :: The next line checks for a new QWK packet.  Change the drive
  13. :: and path to your download directory.
  14.  
  15. IF EXIST D:\TEL\LD\*.QWK GOTO OMK   :: See if any .QWK packets
  16. IF EXIST D:\TEL\LD\*.OKZ GOTO OMK   :: See if any .OKZ packets
  17.  
  18. :CHKEDS
  19. IF EXIST D:\TEL\LD\EDS*.ZIP GOTO EDS
  20. GOTO DONE                           :: Neither, quit
  21.  
  22. :: If there is a .QWK or .OKZ packet, we wind up here
  23.  
  24. :OMK
  25. DVLOAD OM
  26. IF NOT ERRORLEVEL 1 GOTO DONE
  27.  
  28. :: If DV not loaded or error
  29.  
  30. D:                   :: Change to the drive your reader is on
  31. CD \OMK              :: And the directory
  32. OMKREAD -q-l         :: Change to your reader's name.  OMK (Opus
  33.                      :: Message Kit) by Roland Brown is highly
  34.                      :: recommended.  It now reads both .OMK and
  35.                      :: .QWK format!  Note that OMKREAD deletes
  36.                      :: the packet when done.  If your reader
  37.                      :: doesn't do this, you need to do it in
  38.                      :: your batch file.  If you don't, you wind
  39.                      :: up in the reader on the next disconnect.
  40.                      :: It would probably be better to move the
  41.                      :: packet to your reader's directory and
  42.                      :: delete it from your download directory.
  43. GOTO CHKEDS
  44.  
  45. :EDS
  46. DVLOAD FS
  47. IF NOT ERRORLEVEL 1 GOTO DONE
  48.  
  49. :: If DV not loaded or error.  G: is my RAMDISK.
  50.  
  51. DEL G:\EDSHOM*.CAP
  52. PKUNZIP -o D:\TEL\LD\EDSHOM* *.* G: > G:\JUNK
  53. DEL G:\JUNK
  54. LIST G:\EDSHOM*.CAP /M
  55. DEL D:\TEL\LD\EDSHOM*.ZIP
  56.  
  57. :DONE                :: All done
  58. EXIT
  59.